<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath + "admin" %>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link  rel="stylesheet" type="text/css" href="assets/plugins/bootstrap/css/bootstrap.css"/>
	<script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.js"></script>
    <link rel="stylesheet" href="assets/plugins/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="assets/plugins/kindeditor/plugins/code/prettify.css" />
	<link rel="stylesheet" href="assets/css/admin_news.css" />
	<script charset="utf-8" src="assets/plugins/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="assets/plugins/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="assets/plugins/kindeditor/plugins/code/prettify.js"></script>

   
  	
  	<script type="text/javascript"> 
		$(document).ready(function(){
			prettyPrint();
		});
  	</script>
  </head>
  
  <body onload="prettyPrint()">
  		<div id="mainbox">
  			<div id="header">
  				<jsp:include page="../../Template/admin_top.jsp"/>
  			</div>
  			<div id="content">
  			<div id="leftColumn" class="well">
    		<s:iterator value="newsPager.data" id="anews">
    			<div class="anews">
    					<div class="listHeader">
    			 			<h3 class="title"><s:property value="#anews.title" /></h3>
    			 		</div>
    			 		<div class="content">
    			 			<s:property value="#anews.content" escapeHtml="false"/>
    			 		</div>
    			 		<div class="newsinfo">
    			 			<div class="author">
	    			 			作者
	    			 			<span><s:property value="#anews.author"/>
    			 			</div>
    			 			<div class="source">
    			 				来源于
    			 				<span><s:property value="#anews.source"/></span>
    			 			</div>
    			 			<div class="postdate">
    			 				<span><s:date name="#anews.postdate" format="yyyy-MM-dd HH:mm:ss" /></span>
    			 			</div>
    			 		</div>
    			</div>
    		</s:iterator>
   			</div>
   			<div id="rightColumn">
   				
   			</div>
   			</div>
   			<div id="footer" >
  			<p>java 分享平台技术中心</p>
	    	<p>© Cuit software 2012 </p>
  		</div> 
   		</div>
    
  </body>
</html>
